package main

import (
	"fmt"
	"time"
)

func main() {
	ticker := time.NewTicker(1 * time.Second)
	for range ticker.C {
		fmt.Println("每隔3秒执行任务")
	}
	ticker.Stop()
}
